home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
disk
/
misc
/
reformat10.lha
/
ReFormat
/
ReFormat.doc
< prev
next >
Wrap
Text File
|
1993-04-30
|
2KB
|
55 lines
ReFormat.doc for version 1.0 (April 29, 1993)
What is ReFormat, why did I want it, and how do you use it?
-----------------------------------------------------------
ReFormat will basically do a
FORMAT DRIVE <drive>
NAME <keep same volume name>
<keep previous filesystem (NOFFS | FFS)>
QUICK
NOICONS
on the drive that you specify as the only command line parameter.
I wanted this utility because I often do very simple backups using the
COPY command (as an example: COPY CSRC:Utilities DF0: CLONE)
and when I want to update my backups, I wish to quickly blank the floppy,
but have it keep the original volume name, since its going to be reused
for the same purpose. I tried to do this with AmigaDOS shell scripts (this
is something that really should have been built into the existing FORMAT
command as an option, say KEEPNAME), but I was unable to succede... so I
gave in a wrote a program.
Usage is simple, from the command line only. (This is a simple utility...
I may add the ability to use it from WorkBench later... I don't have the
need myself right now...)
Heres some usage examples:
ReFormat ? (DEVICE=DRIVE/A/K,NOPROMPT/S,ABOUT/S,VERSION/S)
ReFormat DRIVE DF0:
ReFormat DEVICE DF1: VERSION
ReFormat DRIVE DH0: NOPROMPT {Probably *NOT* something you want to do!}
ReFormat ABOUT
Thats about all there is to it... I have included the code, for those who
are curious about these things. I learned a fair amount while writing this,
and one thing in particular is worthy of note. If you wish to use the
dos.library function Format(), it appears you *have* to first Inhbit() the
drive you wish to Format()... makes sense, but I wish the manuals (I found
no mention of this in RKM: Includes & Autodocs or in
The AmigaDOS Manual, 3rd edition) had indicated this little fact...
This program, and the C source code, are not to be redistributed in any
altered format, but other than that restriction, this package is placed in
the public domain. (Basically don't change this code and then try and make
it look like I made the changes... include it into your own programs if you
like, but give me some credit... :-)
If you have any questions, comments or concerns... please email me and
tell me whats on your mind...
Nick MacDonald
email: i6t4@jupiter.sun.csd.unb.ca
voice: (506) 457-1931